﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HMS.BL
{
    
    public class colModel
    {
        public string index { get; set; }
        public string label { get; set; }
        public string name { get; set; }
        public int width { get; set; }
        public string align { get; set; }
        public string sorttype { get; set; }
        public string formatter { get; set; }
        public Boolean editable { get; set; }
        public Boolean hidden { get; set; }
        public Boolean key { get; set; }
       // public int size { get; set; }
        public string edittype { get; set; }
        public Boolean NullIfEmpty { get; set; }
        public string stype { get; set; }
        public string target { get; set; }

        //edittype

        public Dictionary<string, object> editoptions { get; set; }
        public Dictionary<string, object> editrules { get; set; }
        public Dictionary<string, object> formatoptions { get; set; }

        
        //sorttype
        //editrules
        //public string formatoptions { get; set; }


        public colModel()
        {
            //
            // TODO: Add constructor logic here
            //
        }

        public colModel(string index)
        {
            this.index = index;
            this.label = label;
            this.name = name;
            this.width = width;
            this.align = align;
            this.sorttype = sorttype;
            this.formatter = formatter;

            this.hidden = hidden;
            this.editable = editable;
            this.editoptions = editoptions;
            this.editrules = editrules;
            this.formatoptions = formatoptions;
           // this.size = size;
            this.edittype = edittype;
            this.NullIfEmpty = NullIfEmpty;

        }
    }
}
